import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import socketService from './utils/socketService'
import eventBus from 'vue3-eventbus'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(eventBus)

socketService.initWebSocket(socketService.WS_URL)

app.mount('#app')
